package com.example.streamtransport.Listener;

import com.example.streamtransport.Event.OrderEvent;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class EventListenerHandle {
    @Async
    @EventListener
    public void HandleEvent(OrderEvent event)
    {
       var a=event.Name;
    }
}
